package com.wyh.mapper.gfivemapper;

import com.wyh.domain.po.gfive.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author KmJHHhhhR
* @description 针对表【role(角色表)】的数据库操作Mapper
* @createDate 2024-05-20 15:03:04
* @Entity generator.domain.Role
*/
@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> selectRoleByUserId(Integer id);

    @Select("select `role`.id,`role`.name from `role` where `role`.state=1")
    List<Role> showAllRole();

    List<String> selectRolesByIds(Integer[] roleIds);

}




